<div class="center">
  <a class="button preloader" href="<? echo redirect_str(PAGE_ADMIN_ORGAN); ?>">PŘIDAT ČLENA</a><br /><br />
</div>  

  <table class="centered small-table">
      <tr>
        <th>priorita</th>
        <th>jméno</th>
        <th>funkce</th>
        <th>foto</th>
        <th>akce</th>
      </tr>
      
      <?
      $query = getManagementTeam();
      while($fetch = MySQL_Fetch_Array($query)){
        $id = $fetch["ID_CLOVEK"];
        $name = $fetch["JMENO"];
        $function = $fetch["FUNKCE"];
        $priority = $fetch["PRIORITA"];
        $photo = $fetch["FOTO"];
        
        echo "<tr>";
          echo "<td>$priority</td>";
          echo "<td class='lefted'>$name</td>";
          echo "<td>$function</td>";
          if($photo != "") echo "<td><img src='./img/lide/$photo'></td>";
          else echo "<td>není</td>";
          echo "<td><a class='preloader' href='".redirect_str(PAGE_ADMIN_ORGAN).add_par("id_clen=".$id)."'><img class='icon-btn' src='./img/icons/edit.png'></a>
                <a class='preloader' href='".redirect_str(PAGE_ADMIN_MANAGEMENT).action(ACTION_DELETE_ORGAN).add_par("id_clen=".$id)."'><img class='icon-btn' src='./img/icons/delete.png'></a></td>";
        echo "</tr>";
      }
      ?>
  </table>